package com.xframe.domain.e3sp.basedata;


import com.xframe.domain.BaseModel;
import com.xframe.domain.e3sp.maindata.SparePartBaseView;
import com.xframe.xdal.core.annotation.AutoFill;
import com.xframe.xdal.core.annotation.XBelongsTo;
import com.xframe.xdal.core.annotation.XColumn;
import com.xframe.xdal.core.annotation.XTable;
import com.xframe.xdal.core.constant.AutoFillType;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * @Description: 防伪备件
 * @ClassName: com.xframe.domain.e3sp.basedata.SparePartSec
 * @Author: xufeng
 * @CreateTime: 2024/1/10
 **/
@Data
@Accessors(chain=true)
@XTable(value = "p_t02_spare_part_sec", label = "防伪备件")
@XBelongsTo(typeName = "com.xframe.domain.e3sp.maindata.SparePartBaseView",foreignKey = "sparePartId", targetKey = "sparePartId",as = "refSparePart")
public class SparePartSec extends BaseModel {

    /**
     * 防伪备件ID
     */
    @AutoFill(AutoFillType.Snowflake)
    @XColumn(name = "spare_sec_id", primaryKeyFlag = true,desc = "防伪备件ID")
    private Long spareSecId;

    /**
     * 备件清单ID
     */
    @XColumn(name = "spare_part_id", uniqueFlag = true,desc = "备件清单ID")
    private Long sparePartId;


    private SparePartBaseView refSparePart;
}
